// JavaScript Document
	function kiemtra(){
		

		
		var vSUPTYPE = document.getElementById('SUPTYPE').value;
		
		if(vSUPTYPE=='01'){
			

			
			document.getElementById('SUPDESC').readOnly='readOnly';
			document.getElementById('BRNCODE').disabled='disabled';
			document.getElementById('DEPTCD').disabled='disabled';

			document.getElementById('EMPNO').readOnly='readOnly';
			document.getElementById('EMPNO1').readOnly='readOnly';
			document.getElementById('EMPNO2').readOnly='readOnly';
			document.getElementById('EMPNO3').readOnly='readOnly';
			document.getElementById('EMPNO4').readOnly='readOnly';
			document.getElementById('EMPNO5').readOnly='readOnly';
			document.getElementById('EMPNO6').readOnly='readOnly';
			document.getElementById('EMPNO7').readOnly='readOnly';
			document.getElementById('EMPNO8').readOnly='readOnly';
			document.getElementById('EMPNO9').readOnly='readOnly';
			
			document.getElementById('EMPNO1').value='';
			document.getElementById('EMPNO2').value='';
			document.getElementById('EMPNO3').value='';
			document.getElementById('EMPNO4').value='';
			document.getElementById('EMPNO5').value='';
			document.getElementById('EMPNO6').value='';
			document.getElementById('EMPNO7').value='';
			document.getElementById('EMPNO8').value='';
			document.getElementById('EMPNO9').value='';
			
			document.tongquat.microbank.disabled=true;
			document.tongquat.microbank2.disabled=true;
			document.tongquat.microbank3.disabled=true;
			document.tongquat.microbank4.disabled=true;
			document.tongquat.microbank5.disabled=true;
			document.tongquat.microbank6.disabled=true;
			document.tongquat.microbank7.disabled=true;
			document.tongquat.microbank8.disabled=true;
			document.tongquat.microbank9.disabled=true;
			document.tongquat.microbank10.disabled=true;
			
			
			document.getElementById('all_EMPN').style.display = 'none';
			
			var temp = document.getElementById('SUPID').value;
			document.getElementById('EMPNO').value= temp;
			
		}else if(vSUPTYPE=='10'){
			
			
			document.getElementById('SUPDESC').readOnly='';
			document.getElementById('BRNCODE').disabled='';
			document.getElementById('DEPTCD').disabled='';
			
			document.getElementById('EMPNO').readOnly='readOnly';
			document.getElementById('EMPNO1').readOnly='';
			document.getElementById('EMPNO2').readOnly='';
			document.getElementById('EMPNO3').readOnly='';
			document.getElementById('EMPNO4').readOnly='';
			document.getElementById('EMPNO5').readOnly='';
			document.getElementById('EMPNO6').readOnly='';
			document.getElementById('EMPNO7').readOnly='';
			document.getElementById('EMPNO8').readOnly='';
			document.getElementById('EMPNO9').readOnly='';
			
			document.getElementById('EMPNO').value='';
			
			document.tongquat.microbank.disabled=true;
			document.tongquat.microbank2.disabled=false;
			document.tongquat.microbank3.disabled=false;
			document.tongquat.microbank4.disabled=false;
			document.tongquat.microbank5.disabled=false;
			document.tongquat.microbank6.disabled=false;
			document.tongquat.microbank7.disabled=false;
			document.tongquat.microbank8.disabled=false;
			document.tongquat.microbank9.disabled=false;
			document.tongquat.microbank10.disabled=false;
			
			document.getElementById('all_EMPN').style.display = 'block';
		}
	}
	
	function getvalue(){
		var vSUPTYPE = document.getElementById('SUPTYPE').value;
		if(vSUPTYPE=='10'){
			var vEMPNO1 = document.getElementById('EMPNO1').value;
			document.getElementById('EMPNO').value = vEMPNO1;
		}
	}
	
	